import logging


def set_log_path(OUTPUT_PATH):
    logging.basicConfig(level=logging.DEBUG,
                        format="[%(asctime)s] %(name)s:%(levelname)s: %(message)s",
                        filename=OUTPUT_PATH + 'runlog.log',
                        filemode='w')

    console = logging.StreamHandler()
    console.setLevel(logging.INFO)
    formatter = logging.Formatter("[%(asctime)s] %(name)s:%(levelname)s: %(message)s")
    console.setFormatter(formatter)
    logging.getLogger('').addHandler(console)
